<script setup>
import {ref} from 'vue'
const count = ref(1)
function sum(a,b){
  // console.log(eval(event.target.innerText))
  console.log(a+b)
  console.log(event.target)
  console.log(event.target.innerHTML)
  console.log(event.target.innerText)
}
</script>

<template>
  <button @click="count++">自加1 = {{count}}</button>
  <p>{{count}}</p>

  <hr>
  <button onclick="console.log(2+2)">计算2+2</button>
  <button v-on:click="sum(3,3)">计算3+3</button>
  <button @click.once="sum(2,3)">计算2+3</button>
</template>
